# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.


#最低版本
cmake_minimum_required(VERSION 3.4.1)

# 指定jni文件目录
aux_source_directory(src/main/cpp/ CPP_DIR)

# 设置生成的共享库名称
add_library(player
            SHARED
            ${CPP_DIR})

# 支持C99
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g")

# 增加预编译参数 - TAG
add_definitions(-DMY_LOG_TAG=\"wangheng\")

# 增加默认日志级别
add_definitions(-DMY_LOG_LEVEL=MY_LOG_LEVEL_INFO)

# 添加其他库
find_library(log-lib log)

# 引用其他库
target_link_libraries(player ${log-lib})